/* eslint-disable no-unused-expressions */
import { defineStore } from "pinia";

const useUserInfoStore = defineStore("userInfo", {
  state: () => ({
    userInfo: {
      userId: "",
    } as any,
  }),
  getters: {
    getUserInfo(): any {
      return this.userInfo;
    },
  },
  actions: {
    setUserInfo(userInfo: any): void {
      this.userInfo = userInfo;
    },
  },
});

export default useUserInfoStore;
